<?php /* Smarty version Smarty3-RC3, created on 2013-10-10 09:55:37
         compiled from ".\templates\bullionSummary.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8539525679996f6603-91551280%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a2ff43614c7cd0f390e09af85b37c653ffbc818d' => 
    array (
      0 => '.\\templates\\bullionSummary.tpl',
      1 => 1374297570,
    ),
  ),
  'nocache_hash' => '8539525679996f6603-91551280',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
?><?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
  <?php $_template = new Smarty_Internal_Template("headerPrint.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
<form name="form1" action="" method="post">
<div class="contentDiv">
	<table align="center" cellspacing="0" cellpadding="2" style="border:1px solid;">
<?php if ($_GET['print']!=1){?>
		<tr>
			<th><font size="3" color="red">Bullion</font></th>
			<th align="right"><font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_fine')->value;?>
</font></th>
			<th align="right"><font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_amount')->value;?>
</font></th>
		</tr>
<?php }else{ ?>
<tr>
			<th>Bullion</th>
			<th align="right"><?php echo $_smarty_tpl->getVariable('l_fine')->value;?>
</th>
			<th align="right"><?php echo $_smarty_tpl->getVariable('l_amount')->value;?>
</th>
		</tr>
<?php }?>
		<tr>
	  	<td colspan="3"><hr/></td>
	  </tr>
		<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('bullionParty')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
		  <tr>
		  	<td><?php echo $_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['name'];?>
</td>
		  	<?php if ($_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyFine']>0){?>
		  	<td align="right"><font color="green">
		  	 <?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyFine'],"%.0f");?>

		   </td>
		   <?php }else{ ?>
		   <td align="right">
		   	<font color="red">
		  	 <?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyFine'],"%.0f");?>

		   </td>
		   <?php }?>
		   <?php if ($_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyAmount']>0){?>
		   <td align="right"><font color="green"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyAmount'],"%.0f");?>
</b></font>
		    </td>
		   <?php }else{ ?>
		   <td align="right"><font color="red"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('bullionParty')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyAmount'],"%.0f");?>
</b></font></td>
		   <?php }?>
		  </tr>
		  <tr>
		  	<td colspan="3"><hr/></td>
		  </tr>
		<?php endfor; endif; ?>
		<tr>
			<th align="right"><?php echo $_smarty_tpl->getVariable('l_total')->value;?>
</th>
			<?php if ($_smarty_tpl->getVariable('fineTotal')->value>0){?>
			<th align="right"><font color="green"><b>
			<?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('fineTotal')->value,"%.0f");?>
</b></font></th>
			<?php }else{ ?>
			<th align="right"><font color="red"><b>
			<?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('fineTotal')->value,"%.0f");?>
</b></font></th>
			<?php }?>
			<?php if ($_smarty_tpl->getVariable('amountTotal')->value>0){?>
			<th align="right"><font color="green"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('amountTotal')->value,"%.0f");?>
</b></font></th>
			<?php }else{ ?>
			<th align="right"><font color="red"><b><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('amountTotal')->value,"%.0f");?>
</b></font></th>
			<?php }?>
			</tr>
				<?php if ($_GET['print']!=1){?>
    	<div align="right"><a href="bullionSummary.php?print=1"><font size="4" color="red">Summary Print</font></a></div>
    <?php }else{ ?>
    &nbsp;
   <?php }?>
  </table>
</div>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>